<template>
  <div class="user">
    <div class="menu">
      <header>
        <el-icon><HomeFilled /></el-icon>
        <span>/ 会员中心</span>
      </header>
      <el-menu
          :default-active="$router.currentRoute.value.fullPath"
          class="el-menu-vertical-demo"
          :router="true"
      >
        <el-menu-item :index="`/user/certification`">
          <el-icon><Menu /></el-icon>
          <span>实名认证</span>
        </el-menu-item>
        <el-menu-item :index="`/user/order`">
          <el-icon><Document /></el-icon>
          <span>挂号订单</span>
        </el-menu-item>
        <el-menu-item index="/user/patient">
          <el-icon><Setting /></el-icon>
          <span>就诊人管理</span>
        </el-menu-item>
        <el-menu-item index="/user/profile">
          <el-icon><Avatar /></el-icon>
          <span>账号信息</span>
        </el-menu-item>
        <el-menu-item index="/user/feedback">
          <el-icon><InfoFilled /></el-icon>
          <span>意见反馈</span>
        </el-menu-item>

      </el-menu>
    </div>
    <div class="content">
      <router-view></router-view>
    </div>

  </div>
</template>

<script setup lang="ts">
import {Menu, Document, HomeFilled, InfoFilled, Setting, Avatar} from "@element-plus/icons-vue";

</script>

<style scoped lang="less">
.user {
  display: flex;
  justify-content: space-between;
  .menu {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 2;
    header {
      display: flex;
      justify-content: center;
      span {
        font-size: 16px;
        color: #000;
      }
    }
  }
  .content {
    flex: 8;
  }

}


</style>